<template>
	<view class="user clearfix  bg-shop hv100">
		<cu-custom bgColor="bg-white " isBack>
			<block slot="content">设置</block>
		</cu-custom>
		<view class="flex align-center justify-between px15 f16 bg-white mt5 py20" @click="pushPage('/pages/user/infos')">
			<view class="flex align-center">个人资料</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="flex align-center justify-between px15 f16 bg-white mt1 py20" >
			<view class="flex align-center">平台证照</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="flex align-center justify-between px15 f16 bg-white mt1 py20" @click="pushPage('/pages/user/gongdan')">
			<view class="flex align-center">意见反馈</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class="flex align-center justify-between px15 f16 bg-white mt1 py20">
			<view class="flex align-center">版本更新</view>
			<view class="flex align-center justify-end">
				<text class="mr10 f12 text-info">已是最新版本</text>
				<text class="cuIcon-right"></text>
			</view>
		</view>
		<view class="discenter set-button f16" @click="handleLogout">退出登录</view>
	</view>
</template>

<script>
import { mapState, mapActions } from 'vuex'
export default {
	data() {
		return {
			
		}
	},
	computed: {
		...mapState(['userInfo','baseURL'])
	},
	methods: {
		...mapActions(['logout','getUser']),
		handleLogout() {
			this.logout()
			uni.reLaunch({ url: '/pages/login/login' })
		},
	}
}
</script>

<style lang="less">
.mt1s{
	margin-top: 1rpx;
}
.set-button{
	width: calc(100% - 60rpx);
	margin-left: 30rpx;
	height: 102rpx;
	background-color:#0ea391;
	color: #FFFFFF;
	border-radius: 10rpx;
	margin-top: 80rpx;
}
</style>
